package com.gt.wxpay.cashier.payChannel.domain.model;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gt.wxpay.cashier.domain.model.BaseEntity;
import org.apache.ibatis.type.JdbcType;

/**
 * 支付渠道实体
 */
@TableName("cashier_pay_channel")
public class PayChannel extends BaseEntity {

    /**
     * 手续费,千分之几
     */

    @TableField(value = "fee", jdbcType = JdbcType.NUMERIC)
    private Integer fee;
    /**
     * 结算周期,默认为T+1
     */

    @TableField(value = "settle_period", jdbcType = JdbcType.NUMERIC)
    private Integer settlePeriod;
    /**
     * 支付渠道类型,wxpay-微信支付
     */

    @TableField(value = "pay_channel", jdbcType = JdbcType.NUMERIC)
    private Integer payChannel;
    /**
     * 商户Id
     */

    @TableField(value = "merchant_id", jdbcType = JdbcType.VARCHAR)
    private String merchantId;
    /**
     * 商户私钥
     */

    @TableField(value = "private_key", jdbcType = JdbcType.VARCHAR)
    private String privateKey;
    /**
     * 证书路径
     */


    @TableField(value = "cert_path", jdbcType = JdbcType.VARCHAR)
    private String certPath;
    /**
     * 支付平台公钥
     */


    @TableField(value = "public_key", jdbcType = JdbcType.VARCHAR)
    private String publicKey;
    /**
     * 渠道名称
     */
    @TableField(value = "pay_channel_name", jdbcType = JdbcType.VARCHAR)
    private String payChannelName;


    /**
     * 证书序列号
     */
    @TableField(value = "merchant_serial_number", jdbcType = JdbcType.VARCHAR)
    private String merchantSerialNumber;

    public String getMerchantSerialNumber() {
        return merchantSerialNumber;
    }

    public void setMerchantSerialNumber(String merchantSerialNumber) {
        this.merchantSerialNumber = merchantSerialNumber;
    }

    public Integer getFee() {
        return fee;
    }

    public void setFee(Integer fee) {
        this.fee = fee;
    }

    public Integer getSettlePeriod() {
        return settlePeriod;
    }

    public void setSettlePeriod(Integer settlePeriod) {
        this.settlePeriod = settlePeriod;
    }

    public Integer getPayChannel() {
        return payChannel;
    }

    public void setPayChannel(Integer payChannel) {
        this.payChannel = payChannel;
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    public String getCertPath() {
        return certPath;
    }

    public void setCertPath(String certPath) {
        this.certPath = certPath;
    }

    public String getPublicKey() {
        return publicKey;
    }

    public void setPublicKey(String publicKey) {
        this.publicKey = publicKey;
    }

    public String getPayChannelName() {
        return payChannelName;
    }

    public void setPayChannelName(String payChannelName) {
        this.payChannelName = payChannelName;
    }

    private String appId;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }
}
